<h1>Listado de Administradores</h1>
<?php
    echo $this->html->link('Agregar Administrador', array('action'=>'add'));

?>
<table>
        <tr>
                <th>Nombre</th>
                <th>Id</th>
                <th>Celular</th>
                <th>Correo</th>
                <th>Planta</th>
                <th>Acciones</th>
        </tr>
<?php foreach($administradores as $administrador):?>
        <tr>
                <td> <?php echo $administrador['Administrator']['nombre'];?></td>
                <td> <?php echo $administrador['Administrator']['id'];?></td>
                <td> <?php echo $administrador['Administrator']['celular'];?></td>
                <td> <?php echo $administrador['Administrator']['correo'];?></td>
                <td> <?php echo $administrador['Administrator']['planta'];?></td>   
                <td>
<?php echo $this->Html->Link( 'Editar', array('action'=>'edit',$administrador ['Administrator']['id']));?>                
<?php echo $this->Form->postLink('Eliminar', array('action'=>'delete', 
            $administrador['Administrator']['id']), array('confirm' =>'Realmente desea eliminar este adiministrador'));
            ?>
            </td>
        </tr>
<?php endforeach;?>
</table>

